﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using MBS.UserControls.MovieScheduleUserControl;

namespace MBS
{
    public partial class MovieSchedule : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                AddMovieScheduleUserControl1.Actionresult.ToString();


            }
           
            AddMovieScheduleUserControl1.MovieScheduleAddComplete += new AddMovieScheduleUserControl1.MovieScheduleAddHandler(AddMovieScheduleUserControl1_MovieScheduleAddComplete);
            AddMovieScheduleUserControl1.MovieScheduleAddFailed += new AddMovieScheduleUserControl1.MovieScheduleAddHandler(AddMovieScheduleUserControl1_MovieScheduleAddFailed);
        }

        void AddMovieScheduleUserControl1_MovieScheduleAddFailed()
        {
            string x = "Movie Schedule Failed to add";

            ClientScript.RegisterStartupScript(this.GetType(), "sad", "javascript:showAlert('" + x + "')", true);
        }

        private void AddMovieScheduleUserControl1_MovieScheduleAddComplete()
        {
            string x = "Movie Schedule is added Successfully";

            ClientScript.RegisterStartupScript(this.GetType(), "sad", "javascript:showAlert('" + x + "')", true);

        }
    }
}